package com.mt.roll.wms.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2021/1/11 10:47
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "设备配方参数", description = "设备配方参数")
public class EquipmentRecipeParam {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id，只在update的时候传，add不用传", required = true, example = "1417091020660084737")
    private Long id;

    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型 ", required = true ,example = "1")
    private Long equipmentType;

    /**
     * 设备id
     */
    @ApiModelProperty(value = "设备id ", required = true ,example = "1384697070721482753")
    @NotNull(message = "设备id 不能为空")
    private Long equipmentId;

    /**
     * 编码
     */
    @ApiModelProperty(value = "配方code", required = true ,example = "SBPF20210719000031")
    @NotBlank(message = "配方code 不能为空")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty(value = "配方name", required = true ,example = "PID10.2recipe3")
    @NotBlank(message = "配方name 不能为空")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(value = "设备配方 描述 ）",example = "描述1")
    private String description;

    /**
     * 备注
     */
    @ApiModelProperty(value = "设备配方 备注 ）",example = "备注1")
    private String remark;

    /**
     * 启用状态:0 、停用，1、启用
     */
    @ApiModelProperty(value = "启用状态:0 、停用，1、启用 ",example = "1")
    private Integer enabled;

    /**
     * 0 未激活；1 已激活
     */
    @ApiModelProperty(value = "激活状态:0 、停用，1、启用 ",example = "0")
    private Integer activationState;

}
